/*
 * Validacion para valors alfa numericos
 */

function soloAlfanumericos(evt) {

	var charCode = (evt.which) ? evt.which : event.keyCode;
	var pwd = String.fromCharCode(charCode);
	var Exp = /^[a-zA-Z0-9]+$/;

	if (pwd.match(Exp)) {
		return true;
	} else {
		return false;
	}
}

function soloNumeros(evt) {

	var charCode = (evt.which) ? evt.which : event.keyCode;
	var pwd = String.fromCharCode(charCode);
	var Exp = /^[0-9]+$/;

	if (pwd.match(Exp)) {
		return true;
	} else {
		return false;
	}
}